package com.win.feign;

import com.win.pojo.Order;
import com.win.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-product")
public interface ProductFeignClient {

    @GetMapping("/product/{id}")
    Product product(@PathVariable("id") Long id);
}
